﻿using System; 
using System.Collections.Generic;
using System.Text;

namespace HAVNet.Intros.AST
{
    public class ASTEmbStmtSwitch : ASTEmbStmt
    {
        public ASTExpr              expression  { get; set; }
        public ASTSwitchSections    switchSections = new ASTSwitchSections ();

        public override string ToString ()
        {
            return "switch (" + expression.ToString() + ")" + Environment.NewLine +
                "{" + Environment.NewLine + 
                switchSections.ToString() + Environment.NewLine +
                "}" + Environment.NewLine;
        }
    }
}
